#pragma once

#include "../umlmodel_global.h"

#include "FinalNode.h"

namespace uml {

/// <summary>
/// FlowFinalNode
/// A FlowFinalNode is a FinalNode that terminates a flow by consuming the tokens
/// offered to it.
/// </summary>
class UMLMODEL_EXPORT FlowFinalNode : public FinalNode {

public: // Constructors and destructors
    explicit FlowFinalNode(const QString& umlType="uml::FlowFinalNode");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

};

} // namespace uml
